﻿using System.Linq;
using XRM.Security.DataAccess.Context;
using XRM.Security.DataAccess.Models;

namespace XRM.Security.DataAccess.Repositories.Impl
{
    public class DepartmentAddressRepository : BaseRepository<DepartmentAddress>
    {
        public DepartmentAddressRepository(IDbContext contextDb) : base(contextDb)
        {   
        }

        public IQueryable<DepartmentAddress> GetByDepartmentId(int departmentId)
        {
            return GetAll( s => s.DepartmentId == departmentId );
        }
    }
}
